<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>客户采纳方案管理</title>
	<meta name="decorator" content="default"/>
	<style type="text/css">
	</style>
	<script type="text/javascript">
		$(document).ready(function() {	
			loadingDisplayTable("contentTable");
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<form:form id="searchForm" modelAttribute="customerSolution" action="${ctx}/expert/customerSolution/list" method="post">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<input id="customerExamId" name="customerExamId" type="hidden" value="${customerExamId}"/>
	</form:form>
	<div class="icon-buttons">
		<a href="${ctx}/expert/customerExam/list" data-role="button" data-inline="true" data-icon="back" data-iconpos="notext" data-rel="back" data-theme="a">返回</a>
	</div>
	<table id="contentTable" class="display">
		<thead><tr><th>方案名称</th><th>计划结束时间</th><th>实际结束时间</th><th>状态</th><th>操作</th></tr></thead>
		<tbody>
		<c:forEach items="${page.list}" var="customerSolution">
			<tr id="${customerSolution.id}">
				<td>${customerSolution.solutionFace.name}</td>
				<td>${fns:formatDate(customerSolution.plan_end_date, "yyyy-MM-dd")}</td>
				<td>${fns:formatDate(customerSolution.real_end_date, "yyyy-MM-dd")}</td>
				<td>${fns:getDictLabel(customerSolution.status, 'customerSolution_status', '')}</td>
				<td>
					<a data-role="button" data-inline="true" href="${ctx}/expert/customerSolutionAndCare/detail?customerSolutionId=${customerSolution.id}&target=detail">护理明细</a>
					<a data-role="button" data-inline="true" href="${ctx}/expert/customerSolutionAndProduct/detail?customerSolutionId=${customerSolution.id}&target=detail">产品明细</a>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>
